import { defineStore } from 'pinia';
import { ref } from 'vue';
 
export const useMyStore = defineStore('myStore', () => {
  const count = ref(0);
 
  function increment() {
    console.log(count.value);
    count.value++;
  }
 
  return { count, increment };
}); 